package com.runa.monitor.platinterface.extend.httpSimilar.bjrl;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

@Component
public class BjrlConfig {

    private static String url;
    private static String urlOfTemPre;

    private static String token;


//    private static String HOST;
//
//    private static String httpServer;
//
//    private static Integer timeout;
//
//    private static Integer keepalive;

    @Value("${bjrl.urlOfTemPre:http://10.2.3.2/snApi/api/sn/common/external/bjrl/buildUnit/2023/tData}")
    public void setUrlOfTemPre(String urlOfTemPre) {
        BjrlConfig.urlOfTemPre = urlOfTemPre;
    }

    public static String getUrlOfTemPre() {
        return urlOfTemPre;
    }

    @Value("${bjrl.url:http://10.2.3.2/snApi/api/sn/common/external/bjrl/weather/getWorkByMac}")
    public void setUrl(String url) {
        BjrlConfig.url = url;
    }

    public static String getUrl() {
        return url;
    }

    @Value("${bjrl.token:R/wbVj+graD7zA7Ez68F010IaoHdBQAcMfZipPHhOmc=}")
    public void setPassWord(String token)   {
        BjrlConfig.token = token;
    }

    public static String getToken() {
        return token;
    }

//    @Value("${storm-mqtt.serverURIs}")
//    public void setHOST(String HOST) {
//        com.runa.monitor.platinterface.mqtt.EmqConfig.HOST = HOST;
//    }
//
//    public static String getHOST() {
//        return HOST;
//    }
//
//    public static String getHttpServer() {
//        return httpServer;
//    }
//
//    @Value("${storm-mqtt.httpServer}")
//    public void setHttpServer(String httpServer) {
//        com.runa.monitor.platinterface.mqtt.EmqConfig.httpServer = httpServer;
//    }
//
//    @Value("${storm-mqtt.timeout}")
//    public void setTimeout(Integer timeout) {
//        com.runa.monitor.platinterface.mqtt.EmqConfig.timeout = timeout;
//    }
//
//
//    public static Integer getTimeout() {
//        return timeout;
//    }
//
//    @Value("${storm-mqtt.keepalive}")
//    public void setKeepalive(Integer keepalive) {
//        com.runa.monitor.platinterface.mqtt.EmqConfig.keepalive = keepalive;
//    }
//
//
//    public static Integer getKeepalive() {
//        return keepalive;
//    }
}

